package com.jinshan.gaietymall.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jinshan.gaietymall.entity.TUser;
import com.jinshan.gaietymall.entity.request.TUserReqVO;
import com.jinshan.gaietymall.entity.request.TuerReqInsertVO;
import com.jinshan.gaietymall.entity.request.TuserQueryVO;
import com.jinshan.gaietymall.entity.response.TUserRep;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author liujinshan
 * @since 2020-04-15
 */
public interface ITUserService extends IService<TUser> {

    /**
     * @description 分页+条件查询用户信息
     * @author liujinshan
     * param tuserQueryVO
     * @return userPage
     * @date 2020/4/24 16:13
     */
    IPage<TUserRep> getAll(TuserQueryVO tuserQueryVO);


    /**
      * @description 根据id查询
      * @author liujinshan
      * param tuserQueryVO
      * @return TUserRep
      * @date 2020/4/24 17:19
      */
    TUserRep getById(TuserQueryVO tuserQueryVO);

    /**
      * @description 根据id更新
      * @author liujinshan
      * param tUserReqVO
      * @date 2020/4/24 17:19
      */
    void update(TUserReqVO tUserReqVO);

    /**
      * @description 根据id删除
      * @author liujinshan
      * param null tUserReqVO
      * @date 2020/4/24 17:16
      */
    void delete(TUserReqVO tUserReqVO);

    /**
      * @description 新增
      * @author liujinshan
      * param tUser
      * @date 2020/4/24 17:36
      */
    void add(TuerReqInsertVO tUser);
}
